<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>注册</title>
</head>
<body>
<form action="/doRegister" method="post">
    <div class="field">
        <label for="username">用户名:</label>
        <input type="text" id="username" name="username" required placeholder="请输入用户名" />
    </div>
    <div class="field">
        <label for="password">密 码:</label>
        <input type="password" id="password" name="password" required placeholder="请输入密码" />
    </div>
    <div class="field">
        <label for="gender">性 别:</label>
        <input type="radio" name="gender" value="1" checked />男
        <input type="radio" name="gender" value="0" />女
    </div>
    <div class="field">
        <label for="age">年 龄:</label>
        <input type="number" id="age" name="age" required placeholder="请输入年龄" />
    </div>
    <div class="field">
        <label for="hometown">籍 贯:</label>
        <select name = "hometown">
            <#list hometownList as hometown>
                <option value="${hometown.value}">${hometown.text}</option>
            </#list>
        </select>
    </div>
    <div class="field">
            <label for="email">邮 箱:</label>
            <input type="text" id="email" name="email" required placeholder="请输入邮箱" />
    </div>
    <div class="field">
        <label for="hobby">爱 好:</label>
        <select name = "hobby">
            <#list hobbyList as hobby>
                <option value="${hobby.value}">${hobby.text}</option>
            </#list>
        </select>
    </div>
    <div class="field">
        <input type="submit" value="注册">
    </div>
</form>
</body>
</html>